﻿<Page x:Class="Alma.Core.Views.ProfileView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:UX="clr-namespace:Alma.UX;assembly=Alma.UX"
      mc:Ignorable="d" 
      d:DesignHeight="500" d:DesignWidth="700"
	Title="ProfileView">

    <Page.Resources>
        <Style TargetType="TabItem">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="TabItem">
                        <Grid Height="40">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition/>
                                <ColumnDefinition Width="auto"/>
                            </Grid.ColumnDefinitions>
                            <Label Name="label" Content="{TemplateBinding Header}"
                                            VerticalAlignment="Center"
                                            Margin="0" Foreground="Black" FontSize="15">
                                <Label.Effect>
                                    <DropShadowEffect BlurRadius="0" Color="LightGray" Direction="-90" Opacity="0.6" ShadowDepth="1" />
                                </Label.Effect>
                            </Label>
                            <Image Source="/Alma.Assets;Component/Images/StepArrow.png" Height="27" VerticalAlignment="Center" Grid.Column="1"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsSelected" Value="True">
                                <Setter TargetName="label" Property="Effect">
                                    <Setter.Value>
                                        <DropShadowEffect BlurRadius="5" ShadowDepth="0"/>
                                    </Setter.Value>
                                </Setter>
                                <Setter TargetName="label" Property="Foreground" Value="White"/>
                            </Trigger>
                            <!--<Trigger Property="IsMouseOver" Value="True">
                                <Setter TargetName="label" Property="Foreground" Value="OrangeRed" />
                            </Trigger>-->
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style TargetType="{x:Type TabControl}">
            <Setter Property="BorderThickness" Value="0,0,0,0"/>
            <Setter Property="BorderBrush" Value="LightGray"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type TabControl}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <Border >
                                <TabPanel IsItemsHost="True" />
                            </Border>
                            <Border Grid.Row="1" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
                                <ContentPresenter ContentSource="SelectedContent" Name="PART_SelectedContentHost"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        
        <Style TargetType="Label">
            <Setter Property="Effect">
                <Setter.Value>
                    <DropShadowEffect BlurRadius="0" Color="LightGray" Direction="-90" Opacity="0.6" ShadowDepth="1" />
                </Setter.Value>
            </Setter>
        </Style>
    </Page.Resources>
    
    <Grid Margin="10,0">
        <TabControl>
            <TabItem Header="基本信息">
                <ScrollViewer>
                    <StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="0,5">
                            <Label Content="姓名：" VerticalAlignment="Center"/>
                            <UX:UXRoundTextField Width="200" FontSize="15" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="0,5">
                            <Label Content="姓名：" VerticalAlignment="Center"/>
                            <UX:UXRoundTextField Width="200" FontSize="15" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="0,5">
                            <Label Content="姓名：" VerticalAlignment="Center"/>
                            <UX:UXRoundTextField Width="200" FontSize="15" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="0,5">
                            <Label Content="姓名：" VerticalAlignment="Center"/>
                            <UX:UXRoundTextField Width="200" FontSize="15" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="0,5">
                            <Label Content="姓名：" VerticalAlignment="Center"/>
                            <UX:UXRoundTextField Width="200" FontSize="15"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="0,5">
                            <Label Content="姓名：" VerticalAlignment="Center"/>
                            <UX:UXRoundTextField Width="200" FontSize="15" />
                        </StackPanel>
                        
                        
                    </StackPanel>
                </ScrollViewer>
            </TabItem>
            <TabItem Header="技能"></TabItem>
            <TabItem Header="工作经历"></TabItem>
        </TabControl>
    </Grid>
</Page>
